// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class RepairRecord : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<RepairRecord, MasterDbContextLocator>
    {

        public int RepairId { get; set; }
        public string AreaName { get; set; }
        public string Extension { get; set; }
        public string GensetNum { get; set; }
        public double? GenRunPeriod { get; set; }
        public string RepairPerson { get; set; }
        public string RepairPersonPhone { get; set; }
        public DateTime? RepairDate { get; set; }
        public string RepairPlace { get; set; }
        public string RepairCompany { get; set; }
        public string RepairLevelName { get; set; }
        public double? RepairFee { get; set; }
        public string RepairContent { get; set; }
        public string RepairPicture { get; set; }
        public string AuditPerson { get; set; }
        public DateTime? AuditDate { get; set; }
        public DateTime? CreateDate { get; set; }
        public string CreatePerson { get; set; }
        public DateTime? EditDate { get; set; }
        public string DeditPerson { get; set; }
        public bool? IsAudited { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
    
        public void Configure(EntityTypeBuilder<RepairRecord> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasKey(e => e.RepairId)
                    .HasName("PK__RepairRe__07D0BC2D366444CE");

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.AuditDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.AuditPerson).HasMaxLength(20);

                entityBuilder.Property(e => e.CreateDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.CreatePerson).HasMaxLength(20);

                entityBuilder.Property(e => e.DeditPerson).HasMaxLength(20);

                entityBuilder.Property(e => e.EditDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.Extension).HasMaxLength(50);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.IsAudited).HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.RepairCompany).HasMaxLength(50);

                entityBuilder.Property(e => e.RepairContent).HasMaxLength(200);

                entityBuilder.Property(e => e.RepairDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.RepairLevelName).HasMaxLength(20);

                entityBuilder.Property(e => e.RepairPerson).HasMaxLength(20);

                entityBuilder.Property(e => e.RepairPersonPhone).HasMaxLength(20);

                entityBuilder.Property(e => e.RepairPicture).HasMaxLength(100);

                entityBuilder.Property(e => e.RepairPlace).HasMaxLength(100);
        }

    }
}

